package com.hutao.chargingpile.pitfall.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 隐患管理表
 * </p>
 *
 * @author HuTao
 * @since 2023-03-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="CpHidden对象", description="隐患管理表")
public class CpHidden implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "隐患id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "隐患类型 0：重大隐患 1：紧急隐患 3：一般隐患")
    private Long hiddenType;

    @ApiModelProperty(value = "充电站点名称")
    private String addressSite;

    @ApiModelProperty(value = "充电桩型号")
    private String chargingpileType;

    @ApiModelProperty(value = "充电枪编号")
    private String number;

    @ApiModelProperty(value = "登记时间")
    private Date regTime;

    @ApiModelProperty(value = "详细地址")
    private String address;

    @ApiModelProperty(value = "站点联系人")
    private String contacts;

    @ApiModelProperty(value = "联系人电话")
    private Long contactsPhone;

    @ApiModelProperty(value = "隐患优先级 0：最高级 1：高级 2：中级 3：低级")
    private Long rank;

    @ApiModelProperty(value = "隐患状态 0：登记 1：已派单 2：未处理 3：处理中 4：已处理 5：已完成")
    private Long status;

    @ApiModelProperty(value = "隐患内容")
    private String content;

    @ApiModelProperty(value = "资料附件")
    private String hiddenImg;

    @ApiModelProperty(value = "处理人")
    private String person;

    @ApiModelProperty(value = "处理人")
    private String personName;

    @ApiModelProperty(value = "处理说明")
    private String explain;

    @ApiModelProperty(value = "预计完成时间")
    private LocalDateTime estimate;

    @ApiModelProperty(value = "任务内容")
    private String assContent;

    @ApiModelProperty(value = "退回原因")
    private String returnContent;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    //@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    //@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty(value = "0未删除1已删除")
    @TableLogic
    private Long isDeleted;

    @ApiModelProperty(value = "充电站点")
    private String stationName;
}